/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package DataSource;

/**
 *
 * @author Tuan
 */
public interface Publisher {
    
    boolean addSubscriber(Subscriber sub);    
    //should include the value
    void notifySubscribers(Data data);
    
    boolean removeSubscriber(Subscriber sub);       
    
}
